package com.hissy.common.design.action.medium;

/**
 * Created by zhangyanfei on 2019/4/11.
 *
 * @author zhangyanfei
 * @date 2019/04/11
 */
public class Mediator extends AbstractMediator {

    Mediator(AbstractColleague a, AbstractColleague b) {
        super(a, b);
    }

    @Override
    public void AaffectB() {
        abstractColleagueB.setNum(abstractColleagueA.getNum() * 100);
    }

    @Override
    public void BaffectA() {
        abstractColleagueA.setNum(abstractColleagueB.getNum() / 100);
    }
}
